import 'package:flutter/material.dart';

import '/src/utils/widget_utils.dart';
import 'overlay_help.dart';

class OverlayEntryX extends OverlayEntry {
  OverlayEntryX({
    required WidgetBuilder builder,
    bool opaque = false,
    bool maintainState = false,
  }) : super(builder: builder, opaque: opaque, maintainState: maintainState);

  @override
  void markNeedsBuild() {
    WidgetUtils.addSafeUse(() => super.markNeedsBuild());
  }

  @override
  void remove() {
    removeX();
  }
}
